package com.bf.electroplating.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 雨排口疑似偷排记录响应DTO
 *
 * @author system
 * @since 2025-01-11
 */
@Data
@Schema(description = "雨排口疑似偷排记录响应DTO")
public class RainfallSuspectedDischargeResponseDTO {

    @Schema(description = "响应码")
    private String code;

    @Schema(description = "响应数据列表")
    private List<SuspectedDischargeItem> list;

    @Schema(description = "是否成功")
    private Boolean success;

    @Schema(description = "总记录数")
    private Integer total;

    @Data
    @Schema(description = "疑似偷排记录项")
    public static class SuspectedDischargeItem {

        @Schema(description = "疑似偷排时间段")
        private String vDate;

        @Schema(description = "最大上报值")
        private BigDecimal vMax;

        @Schema(description = "最小上报值")
        private BigDecimal vMin;

        @Schema(description = "平均上报值")
        private BigDecimal vAvg;
    }
}
